import { mapMutations } from "vuex";
const pageTitle = {
  data () {
    return {}
  },
  computed: {
    pageTitle () {
      //当前菜单显示名
      return this.$route.meta.title;
    },
    pageBtnTxt() {
      if(!this.pageTitle){
        return
      }
      //当前菜单显示名
      let txt = this.pageTitle.replace('管理','').replace('库','')
      return txt
    },
  },
  methods: {
    ...mapMutations(['addBreadItem']),
  }
}
export default pageTitle;
